package com.zkh.myutils.code;

import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;

/**
 * 字符集
 * @author zkh
 */
public interface Charsets {
	/**
	 * UTF-8编码
	 */
	Charset UTF_8 = StandardCharsets.UTF_8;
	/**
	 * GBK编码
	 */
	Charset GBK = Charset.forName("GBK");
	/**
	 * GB2312编码
	 */
	Charset GB2312 = Charset.forName("GB2312");
	/**
	 * ASCII编码
	 */
	Charset ASCII = StandardCharsets.US_ASCII;
	/**
	 * ISO-8859-1编码
	 */
	Charset ISO_8859_1 = StandardCharsets.ISO_8859_1;
}
